package com.hs.srm.task;

import com.hs.srm.admin.modules.quota.service.QuotaService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description 配额管理定时任务
 * @Author hp
 * @Date 2020-05-09
 */
@Component("quotaTask")
public class QuotaTask {

    Logger logger = LoggerFactory.getLogger(QuotaTask.class);

    @Autowired
    QuotaService quotaService;

    /**
     * 将过期的配额数据移至配额历史记录表中
     */
    public void moveHistoryRecords() {
        quotaService.moveHistoryRecords();
    }
}
